-- GENERATED SPELL FOR [Fel Corrupter] --


function spell0_21300(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(32063,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21300', 26000, 1)
end

function spell1_21300(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21300', 3000, 1)
end

function Sorts_21300(pUnit, Event)
local choix_sorts_21300 = math.random(0, 1)
if choix_sorts_21300 == 0 then
pUnit:RegisterEvent('spell0_21300', 1, 1)
end
if choix_sorts_21300 == 1 then
pUnit:RegisterEvent('spell1_21300', 1, 1)
end
end

function mob21300_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21300', math.random(1500, 3000), 1)
end

function mob21300_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21300_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21300_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21300, 1, 'mob21300_Action')
RegisterUnitEvent(21300, 2, 'mob21300_Leave')
RegisterUnitEvent(21300, 3, 'mob21300_Kill')
RegisterUnitEvent(21300, 4, 'mob21300_Die')
